package com.jp.knowledge.my.model;

import android.os.Parcel;
import android.os.Parcelable;

public class ItemSearchModel implements Parcelable {

    // 选项名称
    private String mName;
    // 选项值
    private String mValue;
    // 图片资源（在线）
    private String mImageUrl;
    // 状态 （组织状态：0_未认证，1_认证中，2_已认证）
    private int mStats;

    public String getValue() {
        return mValue;
    }

    public void setValue(String value) {
        mValue = value;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public String getImageUrl() {
        return mImageUrl;
    }

    public void setImageUrl(String imageUrl) {
        mImageUrl = imageUrl;
    }

    public int getStats() {
        return mStats;
    }

    public void setStats(int stats) {
        mStats = stats;
    }


    public ItemSearchModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mName);
        dest.writeString(this.mValue);
        dest.writeString(this.mImageUrl);
        dest.writeInt(this.mStats);
    }

    protected ItemSearchModel(Parcel in) {
        this.mName = in.readString();
        this.mValue = in.readString();
        this.mImageUrl = in.readString();
        this.mStats = in.readInt();
    }

    public static final Creator<ItemSearchModel> CREATOR = new Creator<ItemSearchModel>() {
        @Override
        public ItemSearchModel createFromParcel(Parcel source) {
            return new ItemSearchModel(source);
        }

        @Override
        public ItemSearchModel[] newArray(int size) {
            return new ItemSearchModel[size];
        }
    };
}
